import request from "@/utils/request"
// ??????
/*export function getUserInfo(query){
    return request.get(`/UserManagement/getAllUser?name=${query.name}&pageNum=${query.pageNum}&pageSize=${query.pageSize}`)
}*/

export const getUserInfo = (query) => {
    return request({
        url: `/UserManagement/getAllUser?name=${query.name}&pageNum=${query.pageNum}&pageSize=${query.pageSize}`,
        method: 'GET'
    })
}



// ????
export const updateUser=(user)=>{
    return request.post(`/UserManagement/updateUser`,user)
}
export const  getUser=(userId)=>{
    return request.get(`/UserManagement/getUser/${userId}`)
}

//????
export const deleteUser=(userId)=>{
    return request.delete(`/UserManagement/deleteUser/${userId}`)
}


